package com.qqt.csr.archive.entity.reader;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: yang hao
 * @Date: 2024/11/19 15:53
 * @Description: 智能客服会话
 **/
@Data
@SuppressWarnings("all")
@Schema(description = "人工客服会话")
@TableName(value = "im_rebot_session")
public class SmartConversation implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description="主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "访客id")
    private String visitorId;

    @Schema(description = "访客姓名")
    private String visitorName;

    @Schema(description="机器人id")
    private Long rebotId;

    @Schema(description = "机器人名称")
    private String rebotName;

    @Schema(description = "会话开始时间")
    private Date sessionStartTime;

    @Schema(description = "会话结束时间")
    private Date sessionEndTime;
    //H5
    @Schema(description = "渠道类型")
    private String channelType;

    @Schema(description = "渠道id")
    private Long channelId;

    @Schema(description = "渠道名称")
    private String channelName;

    @Schema(description = "渠道业务")
    private String channelBusiness;

    @Schema(description = "会话风险")
    private String sessionRisk;

    @Schema(description = "是否留言（0-否，1-是）")
    private Integer isLeaveMsg;

    @Schema(description = "对话意图")
    private String sessionIntention;

    @Schema(description = "是否转人工(0-否，1-是)")
    private Integer isTransferAgent;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;
}
